package com.caipiao.mapper;

import com.caipiao.pojo.SPlan;

import java.util.List;
import java.util.Map;
import java.util.Spliterator;

public interface SPlanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SPlan record);

    int insertSelective(SPlan record);

    SPlan selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SPlan record);

    int updateByPrimaryKey(SPlan record);
    //查询赛事计划数
    Integer selectplanCountByPlanItemId(Integer planItemId);
    //查询赛事计划
    List<SPlan> selectplantByPlanItemId(Integer planItemId);
    //查询专家方案
    List<SPlan>  selectplantByMemberId(Map<String,Object> map);
    //关注专家的方案
    List<SPlan> selectplantByUserId(Integer userId);
    //首页最新方案弹窗
    List<SPlan> selectNewPlan();
    //最近中奖方案
    List<String> selectIsWin();
    //查询连续跟单的计划
    List<SPlan> selectplanByPlanWithId(String id);
}